{$header}<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">新增货品 [ <a href="__URL__">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<form class="form-horizontal well form_validation_ttip" method='post' id="form1" name="form1" action="__URL__/mass_insert/">
<table cellpadding=3 cellspacing=3 >
<tr>
    <td class="tRight" >选择的产品：</td>
    <td class="tLeft" ><input name="common_id" type="hidden" value="{$common_id}" />{$common_id|getModelName='Common_product'} </td>
    </tr>
<tr>
    <td>规格组合</td>
    <td>
    <table class="table table-bordered table-striped">
        <tr>
            <td>编号</td>
            <td width="80">规格组合</td>

            <td>库存报警点</td>
            <td>仓位</td>
            <td>条码</td>
            <td>删除</td> 
        </tr>
        <eq name='only_one' value="1">
            <volist name="options" id="op">
                <iterate name="op" id="sop">
                    <tr><php>$mano = ''; $sname = ' '; </php>
                        <td>{$key+1}</td>
                        <td><input type="text" class="span2 disabled" value="<php> $sop_detail = getOptionValueDetail($sop);
                              $mano =$sop; 
                              $sname .= $sop_detail['value_name']; 
                        </php>   {$sop_detail.value_name}    " disabled>
                         <input name="sname[]" type="hidden" value="{$sname}" />
                         <input name="pnumber[]" type="hidden" value="{$mano}" />
                        </td>
                        <td><input id="" name="minstock[]" type="text" value="2" /> </td>
                        <td><input id="" name="location[]" type="text" /> </td>
                        <td><input id="" name="tm[]" type="text" /> </td>
                        <td><img src="__PUBLIC__/Images/publish_x.png" alt="删除" onclick="removerow(this);"> </td>
                    </tr>
                </iterate>
            </volist>


            <else/>

            <volist name="options" id="op">
        <tr><php>$mano = ''; $sname = ''; </php>
            <td>{$key+1}</td>
            <td><input type="text" class="span2 disabled" value="<iterate name="op" id="sop">
            <php> $sop_detail = getOptionValueDetail($sop);
                  $mano .=$sop; 
                  $sname .= ' '.$sop_detail['value_name']; 
            </php>   {$sop_detail.value_name}   </iterate> " disabled>
             <input name="sname[]" type="hidden" value="{$sname}" />
             <input name="pnumber[]" type="hidden" value="{$mano}" />
            </td>
            <td><input id="" name="minstock[]" type="text" value="2" /> </td>
            <td><input id="" name="location[]" type="text" /> </td>
            <td><input id="" name="tm[]" type="text" /> </td>
            <td><img src="__PUBLIC__/Images/publish_x.png" alt="删除" onclick="removerow(this);"> </td>
        </tr>
        </volist>
        </eq>
        
    </table>
</tr>
<tr>
	<td></td>
	<td class="center" width="300">
	<a class="btn btn-primary offset1" href="__URL__/add"><i class="icon-arrow-left icon-white"></i>返回</a>
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 提交</button>
	</td>
</tr>
</table>
</form>
</div>
</div>
<include file="Public:footer"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/easyui/themes/default/easyui.css">
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/filter-product.js"></script>

